package com.inspur.his.service.impl;

import com.inspur.his.mapper.DoctMapper;
import com.inspur.his.pojo.Doct;
import com.inspur.his.pojo.DoctExt;
import com.inspur.his.pojo.DoctState;
import com.inspur.his.pojo.UserExt;
import com.inspur.his.service.DoctService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.List;

@Service("doctService")
public class DoctServiceImpl implements DoctService {
    @Autowired
    private DoctMapper doctMapper;

    public List<DoctExt> doctList(HashMap map){
        return  doctMapper.doctList(map);
    }

    @Override
    public void doctAdd(Doct doct){
        doctMapper.doctAdd(doct);
    }

    @Override
    public void updateDoct(Doct doct) {
        doctMapper.updateDoct(doct);
    }

    @Override
    public void doctchangeStatus(HashMap map) {
        doctMapper.doctchangeStatus(map);

    }

    @Override
    public Doct getDoctById(String id) {
        return  doctMapper.getDoctById(id);
    }

    @Override
    public List<DoctState> getDoctByPst(){
        return doctMapper.getDoctByPst();
    }


}
